Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Dataset preview when every observation contains undefined values #1345

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

bprusinowski
Copy link
Collaborator

@bprusinowski bprusinowski commented Feb 16, 2024

Fixes #1341.

This PR fixes dataset preview in cases when every observation contains undefined values.

Initially, the idea was to show "nice" previews by filtering out observations with undefined values; however it might happen that every observation will have at least one undefined value – we have to remove this condition to allow displaying such cubes.

How to test

  1. Go to this link (PR).
  2. See that the preview is shown.
  3. Go to this link (TEST).
  4. See that the preview is broken.

Copy link

vercel bot commented Feb 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
visualization-tool ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 19, 2024 4:18pm

@Rdataflow
Copy link
Contributor

@bprusinowski can you replace the wrong line? this should keep the filtering logic where appropriate and do the trick to address the issue...

FILTER(EXISTS { ?cube cube:observationConstraint/sh:property/sh:datatype cube:Undefined . } || NOT EXISTS { ?observation ?p ""^^cube:Undefined . })           

@bprusinowski bprusinowski force-pushed the fix/dataset-preview-undefined-values branch from 6809f79 to 39a3c5a Compare February 19, 2024 16:13
@bprusinowski
Copy link
Collaborator Author

That's indeed a better approach, thanks for catching this @Rdataflow 👌

@bprusinowski bprusinowski merged commit 1fc1d01 into main Feb 20, 2024
5 of 7 checks passed
@bprusinowski bprusinowski deleted the fix/dataset-preview-undefined-values branch February 20, 2024 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Multiple cubes found for ..." Error
2 participants